<div class="animated fadeInRight ecommerce">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5>查询条件</h5>
                    <div class="ibox-tools" style="top:10px;">
                        <button type="button" class="btn btn-link btn-sm" style="margin-right:10px;"
                                v-on:click="_moreCondition()">{{payFeeManageInfo.moreCondition == true?'隐藏':'更多'}}
                        </button>
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-4">
                            <select class="custom-select" v-model="payFeeManageInfo.conditions.payObjType">
                                <option selected value="">请选择收费对象</option>
                                <option v-for="(item,index) in payFeeManageInfo.payObjTypes" :key="index"
                                        v-bind:value="item.statusCd">{{item.name}}
                                </option>
                            </select>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <input size="16" type="text" placeholder="请选择缴费开始时间"
                                       v-model="payFeeManageInfo.conditions.startTime"
                                       class="form-control form_datetime  start_time">
                            </div>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <input size="16" type="text" placeholder="请选择缴费结束时间"
                                       v-model="payFeeManageInfo.conditions.endTime"
                                       class="form-control form_datetime  end_time">
                            </div>
                        </div>
                        <div class="col-sm-2">
                            <button type="button" class="btn btn-primary btn-md" v-on:click="_queryPayFeeMethod()">
                                <i class="fa fa-search"></i>查询
                            </button>
                            <button type="button" class="btn btn-info btn-md" v-on:click="_resetPayFeeMethod()"
                                    style="margin-left: 20px;">
                                <i class="fa fa-repeat"></i>重置
                            </button>
                        </div>
                    </div>
                    <div class="row" v-show="payFeeManageInfo.moreCondition == true">
                        <div class="col-sm-4">
                            <input size="16" type="text" placeholder="请填写员工编码"
                                   v-model="payFeeManageInfo.conditions.userCode" class="form-control">
                        </div>
                        <div class="col-sm-3">
                            <select class="custom-select" v-model="payFeeManageInfo.conditions.primeRate">
                                <option selected value="">请选择支付方式</option>
                                <option v-for="(item,index) in payFeeManageInfo.primeRates" :key="index"
                                        v-bind:value="item.statusCd">{{item.name}}
                                </option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5>缴费清单</h5>
                    <div class="ibox-tools" style="top:10px;">
                        <button type="button" class="btn btn-primary btn-sm" v-on:click="_exportExcel()">
                            <i class="fa fa-plus"></i> 导出
                        </button>
                    </div>
                </div>
                <div class="ibox-content">
                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                        <thead>
                        <tr>
                            <th class="text-center">费用类型</th>
                            <th class="text-center">费用项目</th>
                            <th class="text-center">付费方</th>
                            <th class="text-center">缴费ID</th>
                            <th class="text-center">支付方式</th>
                            <th class="text-center">付费周期(单位:月)</th>
                            <th class="text-center">应付金额(单位:元)</th>
                            <th class="text-center">实付金额(单位:元)</th>
                            <th class="text-center">操作员工</th>
                            <th class="text-center">缴费时间</th>
                            <th class="text-center">详情</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr v-for="payFee in payFeeManageInfo.payFees">
                            <td class="text-center">{{payFee.feeTypeCdName}}</td>
                            <td class="text-center">{{payFee.feeName}}</td>
                            <td class="text-center">{{payFee.payObjName}}</td>
                            <td class="text-center">{{payFee.detailId}}</td>
                            <td class="text-center">{{payFee.primeRate}}</td>
                            <td class="text-center">{{payFee.cycles}}</td>
                            <td class="text-center">{{payFee.receivableAmount}}</td>
                            <td class="text-center">{{payFee.receivedAmount}}</td>
                            <td class="text-center">{{payFee.userName}}</td>
                            <td class="text-center">{{payFee.createTime}}</td>
                            <td class="text-center">
                                <button class="btn btn-link btn-xs" v-on:click="_detailFee(payFee)">详情</button>
                            </td>
                        </tr>
                        </tbody>
                        <tfoot>
                        <tr>
                            <td colspan="11">
                                <ul class="pagination float-right"></ul>
                            </td>
                        </tr>
                        </tfoot>
                    </table>
                    <!-- 分页 -->
                    <div class="row">
                        <div class="col-md-4">
                            <span class="margin-left">小计应收: {{payFeeManageInfo.totalReceivableAmount}}元</span>
                            <span class="margin-left">小计实收: {{payFeeManageInfo.totalReceivedAmount}}元</span>
                        </div>
                        <div class="col-md-8 text-center">
                            <vc:create path="frame/pagination"></vc:create>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-4">
                            <span class="margin-left">大计应收: {{payFeeManageInfo.allReceivableAmount}}元</span>
                            <span class="margin-left">大计实收: {{payFeeManageInfo.allReceivedAmount}}元</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>